<?php
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
set_include_path(dirname(__FILE__). DS .'classes');

include_once('Autoload.php');
function dbg($data='',$flag=false){
	echo '<pre>';
	print_r($data);
	echo '</pre>';
	if(!$flag)exit;
}
class SC {
	public static $_app;
	public function __construct(){
	
	}
	public static function createApplication($config){
		if(self::$_app)return self::$_app;
		else
			self::$_app = new CreateWebThumbApplicaction($config);
	}
	public static function app(){
		return self::$_app;
	}
}
class CreateWebThumbApplicaction {
	public function __construct($config){
		$configArray = include_once($config);
		foreach($configArray as $key => $value){
			$this->$key = $value;
		}
	}

}